package Year2021.month10.Day21.Day25;

public class Airplane {
    public String name;
    public double weight;
    public double height;

    public Airplane(String name,double weight, double height) {
        this.name=name;
        this.weight = weight;
        this.height = height;
    }
    public void show(){
        System.out.println(name+"一般重"+weight+"t"+"\t"+"一般飞行高度在"+height+"万米");
    }

    //起飞;
    public void takeOff(Airplane airplane){
        System.out.println(name+"准备起飞了！");
    }
    //加速;
    public  void speedUP(Airplane airplane){
        System.out.println(name+"开始加速！");
    }
    //降落;
    public void land(Airplane airplane){
        System.out.println(name+"到达目的地，准备降落！");
    }
}
